package com.demo.apigateway.hystrix;

import com.demo.common.core.entity.Result;
import com.demo.common.core.exception.SystemErrorType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zh-ma
 * Date 2019/8/27 ${Time}
 */
@RestController
public class FallbackController {
    @RequestMapping("/fallback")
    public Result fallback() {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }
}